package com.javajun.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

import com.javajun.custom.BaseRepository;
import com.javajun.entity.Enterprise;
import com.javajun.entity.Invoice;

@Repository
public interface InvoiceRepository extends BaseRepository<Invoice, Integer> {

    Page<Invoice> findByEnterprise(Enterprise enterprise, Pageable pageable);

    Invoice findByInvoiceCode(String invoiceCode);

    Invoice findByInvoiceNum(String invoiceNum);

}
